From 92b5e8126492696a3ec1ad887ce296c798a549f7 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 23 Nov 2005 19:16:54 +0000 Subject: [PATCH] Don't treat the failure of ifconfig vifX.Y down as a fatal error. This hasn't emerged as a problem in the field, AFAIK, but it seems that distro scripts could have brought the device down already by this point (Debian stable's net.agent does ifdown vifX.Y, and it wouldn't surprise me if someone decided to do ifconfig vifX.Y down if this failed, for example). Logging but ignoring the failure seems sensible. Signed-off-by: Ewan Mellor --- tools/examples/vif-bridge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/examples/vif-bridge b/tools/examples/vif-bridge index a4f6bb0e7f..69f1a670d7 100755 --- a/tools/examples/vif-bridge +++ b/tools/examples/vif-bridge @@ -62,7 +62,7 @@ case "$command" in offline) # vifs are auto-removed from bridge. - ifconfig "$vif" down || fatal "ifconfig $vif down failed" + ifconfig "$vif" down || log err "ifconfig $vif down failed" ;; esac -- 2.30.2